<g:if test="${params.config}">
    <g:link controller="${controller}" action="delete" id="${id}"
            onclick="return confirm('${message(code: 'default.delete.confirm')}');">
        <r:img uri="/images/skin/pro-delete.png"/></g:link>
</g:if>